lib/locktest.c